package com.spring.cloud.client.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author li gang
 */
@FeignClient(value = "spring-cloud-server")
public interface RpcInformation {

    @RequestMapping(value = "/get_info")
    String getInfo(@RequestParam(value = "key") String key);

    @RequestMapping(value = "/save_info")
    String saveInfo(@RequestParam(value = "key") String key, @RequestParam(value = "value") String value);

    @RequestMapping(value = "/hello_world")
    String getHelloInfo();

}
